{% load static staticfiles i18n %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>{% block title %}YaTCM{% endblock title %}</title>

    <!-- core bootstrap css style sheet -->
    <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
    <link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
    {% block css %}{% endblock css %}

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
            <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
            <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>

<body>
<div class="container" id="header">
    <div id="header-top" class="container">
        <div class="page-header">
{#            <div class="col-md-2" id="yatcm-image">#}
{#                <a href="{% url 'index' %}">#}
{#                    <img class="img-rounded" src="{% static 'image/slide.jpeg' %}" style="height: 60px; width: 180px; margin-top: 10px">#}
{#                </a>#}
{#            </div>#}
            {#        <div class="col-md-7" id="search-bar">#}
            {#            <div class="input-group" style="margin-top: 15px;">#}
            {#                <span class="input-group-btn">#}
            {#                    <button class="btn btn-default" type="button">站内搜索</button>#}
            {#                </span>#}
            {#                <input type="text" class="form-control">#}
            {#            </div>#}
            {#        </div>#}
            <div class="col-md-10 col-md-offset-1" id="web-header">
                <h1 style="font-family: Lobster serif;">Yet Another Traditional Chinese Medicine DataBase</h1>
            </div>
        </div>

    </div>

    <nav class="navbar navbar-static-top navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url "index" %}">YaTCM</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="{% url "index" %}">Home</a></li>
{#                    <li class="dropdown">#}
{#                        <a href="{% url 'search' %}" class="dropdown-toggle" data-toggle="dropdown">Search<span class="caret"></span></a>#}
{#                        <ul class="dropdown-menu" role="menu">#}
{#                            <li><a href="{% url 'search' %}">Search</a></li>#}
{#                            <li><a href="#">Another action</a></li>#}
{#                            <li><a href="#">Something else here</a></li>#}
{#                            <li class="divider"></li>#}
{#                            <li class="dropdown-header">Nav header</li>#}
{#                            <li><a href="#">Separated link</a></li>#}
{#                            <li><a href="#">One more separated link</a></li>#}
{#                        </ul>#}
{#                    </li>#}
                    <li><a href="{% url 'search' %}">Search</a></li>
                    <li><a href="{% url "about" %}">About</a></li>
                    <li><a href="{% url "contact" %}">Contact</a></li>
                </ul>
{#                <ul class="nav navbar-nav">#}
{#                    <li><a href="#">Login</a> </li>#}
{#                </ul>#}
            </div>
        </div>
    </nav>

</div>


<!-- the content block -->
<div class="row">
    <div class="container">
        {% block content %}
        {% endblock content %}
    </div>
</div>
<footer>
    {% block foot %}
        <div class="row">
            <div class="container">
                <div class="col-md-6 col-md-offset-3">
                    <p class="text-center">copyright &copy; NanKai</p>
                </div>
            </div>
        </div>
    {% endblock foot %}
    {% block js %}{% endblock js %}
    <script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <script src="{% static "js/bootstrap.min.js" %}"></script>
</footer>
</body>
</html>